package com.aaa.member.controller.api;

import com.aaa.entity.AwardPointSystem;
import com.aaa.entity.SysDictData;
import com.aaa.member.service.AwardPointSystemService;
import com.aaa.security.annotation.MyLog;
import com.aaa.vo.AwardPointSystemVo;
import com.aaa.vo.Result;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 荆豪峰
 * @version 1.0
 * #Date: 2023/2/28 16:14
 */
//积分管理
@Api(value = "/member/aps", tags = {"积分管理"})
@RestController
@RequestMapping("/member/aps")
public class AwardPointSystemController {
    @Autowired
    private AwardPointSystemService awardPointSystemService;
    @ApiImplicitParams({
            @ApiImplicitParam(paramType = "query", dataType = "int", name = "currentPage", value = "", required = true),
            @ApiImplicitParam(paramType = "query", dataType = "int", name = "pageSize", value = "", required = true),
            @ApiImplicitParam(paramType = "body", dataType = "AwardPointSystemVo", name = "awardPointSystemVo", value = "", required = true)
    })
    @ApiOperation(value = "", notes = "", httpMethod = "POST")
    @MyLog(title="查询积分")
    @PostMapping("list")
    public Result list(Integer currentPage, Integer pageSize, @RequestBody AwardPointSystemVo awardPointSystemVo){
        return awardPointSystemService.list(currentPage,pageSize,awardPointSystemVo);
    }

}

